createRotation
fun createRotation(angle: Double, angleUnit: AngleUnit = AngleUnit.RADIANS): AffineTransformationMatrix2(source)
Creates a rotation transformation matrix.
Return
A new affine transformation matrix representing the rotation.
Parameters
angle
The angle to rotate the matrix.
angleUnit
The unit of the angle, defaults to AngleUnit.RADIANS.